<cfcomponent output="false">

	<cffunction name="init" access="public" returntype="UserPreferences">
		<cfargument name="dsn" type="string" required="true"/>
		<cfset variables.UserPreferencesDAO = CreateObject('component','UserPreferencesDAO').init(arguments.dsn)/>
		<cfreturn this/>
	</cffunction>

	<cffunction name="getPreferences" access="public" returntype="void">
		<cfargument name="User" type="User" required="true"/>
		<cfset variables.UserPreferencesDAO.read(arguments.User)/>
	</cffunction>
	
	<cffunction name="savePreferences" access="public" returntype="void">
		<cfargument name="User" type="User" required="true"/>
		<cfset variables.UserPreferencesDAO.save(arguments.User)/>
	</cffunction>
	
</cfcomponent>